**# Bookmark #1 Setting

*Windows
global root  = "G:/Dropbox/Environmental Injustice/Empirical"
global rawdata = "$root/rawdata"
global workdata = "$root/workdata"
global results = "$root/results"
global outfile = "$root/outfile"

cd "$workdata"


**# Bookmark #2.1 Table S6 Columns 1-2
use "$outfile/Table S6 Columns 1-2.dta",clear

reghdfe so2emission c.belowcl##i.post,absorb(i.id i.province#i.year i.tcz#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S6.xls",replace ctitle("SO2 Emission") ///
keep(1.post#c.belowcl belowcl 1.post) ///
addtext(City FE, NO, Firm FE, YES, ProvincebyYear FE, YES, Two Control Zone X Year FE, YES) ///
bdec(3) tdec(3) rdec(3)

reghdfe so2emission c.belowhs##i.post,absorb(i.id i.province#i.year i.tcz#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S6.xls",append ctitle("SO2 Emission") ///
keep(1.post#c.belowhs belowhs 1.post) ///
addtext(City FE, NO, Firm FE, YES, ProvincebyYear FE, YES, Two Control Zone X Year FE, YES) ///
bdec(3) tdec(3) rdec(3)


**# Bookmark #2.2 Table S6 Columns 3-4
use "$outfile/Table S6 Columns 3-4.dta",clear

reghdfe entrynum c.belowcl##i.post,absorb(i.city i.province#i.year i.tcz#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S6.xls",append ctitle("Firm Entry") ///
keep(1.post#c.belowcl belowcl 1.post) ///
addtext(City FE, YES, Firm FE, NO, ProvincebyYear FE, YES, Two Control Zone X Year FE, YES) ///
bdec(3) tdec(3) rdec(3)

reghdfe entrynum c.belowhs##i.post,absorb(i.city i.province#i.year i.tcz#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S6.xls",append ctitle("Firm Entry") ///
keep(1.post#c.belowhs belowhs 1.post) ///
addtext(City FE, YES, Firm FE, NO, ProvincebyYear FE, YES, Two Control Zone X Year FE, YES) ///
bdec(3) tdec(3) rdec(3)
